﻿using System;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Abp.Application.Services.Dto;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.AssessmentReports;
using LeadThing.AbpZeroTemplate.EntityFramework;

namespace LeadThing.AbpZeroTemplate.AssessmentReports.EntityMapper.AssessmentReports
{

    /// <summary>
    /// 评估报告报备情况的数据配置文件
    /// </summary>
    public class AssessmentReportCfg : EntityTypeConfiguration<AssessmentReport>
    {
        /// <summary>
        ///  构造方法[默认链接字符串< see cref = "AbpZeroTemplateDbContext" /> ]
        /// </summary>
        public AssessmentReportCfg()
        {
            ToTable("AssessmentReport", AbpZeroTemplateConsts.SchemaName.Basic);


            // 项目名称
            Property(a => a.ProjectTitle).HasMaxLength(100);
            // 评估单位
            Property(a => a.AssUnit).HasMaxLength(500);
            // 评估结论
            Property(a => a.AssConclusion).HasMaxLength(500);
            // 备注
            Property(a => a.Remarks).HasMaxLength(500);
        }
    }
}